package yns.springboot.common.sample.page;

import java.io.Serializable;
import java.util.List;

import yns.springboot.common.sample.base.bean.BaseBean;

public class PaginationInfo<T extends BaseBean> implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7836609260817006498L;

	private Integer pageSize;
	private Integer currentPage;
	private Integer totalCount;
	private List<T> dataList;
	private Integer totalPage;
	private Integer startNum;
	private Integer endNum;

	public PaginationInfo() {
		this.pageSize = 20;
		this.currentPage = 1;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public Integer getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(Integer currentPage) {
		this.currentPage = currentPage;
	}

	public Integer getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(Integer totalCount) {
		this.totalCount = totalCount;
	}

	public List<T> getDataList() {
		return dataList;
	}

	public void setDataList(List<T> dataList) {
		this.dataList = dataList;
	}

	public Integer getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(Integer totalPage) {
		this.totalPage = totalPage;
	}

	public Integer getStartNum() {
		return startNum;
	}

	public void setStartNum(Integer startNum) {
		this.startNum = startNum;
	}

	public Integer getEndNum() {
		return endNum;
	}

	public void setEndNum(Integer endNum) {
		this.endNum = endNum;
	}
	
	
	@Override
	public String toString() {
		return "PaginationInfo [pageSize=" + pageSize + ", currentPage=" + currentPage + ", totalCount=" + totalCount
				+ ", dataList=" + dataList + ", totalPage=" + totalPage + ", startNum=" + startNum + ", endNum="
				+ endNum + "]";
	}

}
